/* global axios axiosMock */
const IndexAPI = {
  // 获取热词
  getHotWords () {
    return axios.get('/api/hot_search_words').then(res => res.data).catch(function (err) {
        console.log('errors:', err);
    })
  },
  // 获取商铺信息
  getResturants (page) {
    return axios.get('/api/shops?page=' + page, {
      params: {
      }
    }).then(res => res.data)
  }
}

export default IndexAPI
